/**
 * 
 */
package com.wisdytech.linkdcs.energy.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * ClassName: EquipmentEnergyRecord
 * </p>
 * <p>
 * Description: 设备能耗记录表
 * </p>
 * <p>
 * Author: kongming
 * </p>
 * <p>
 * Date: 2017-10-16
 * </p>
 */
@TableName("tt_eq_energy_record")
public class EquipmentEnergyRecord extends Model<EquipmentEnergyRecord>{
    /**
     * 
     */
    private static final long serialVersionUID = 8193447041595500539L;
    
    /**
     * 主键id
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 能耗设备表id
     */
    @TableField("energy_id")
    private String energyId;
    
    /**
     * 能耗数据
     */
    @TableField("value")
    private Double value;
    /**
     * 采集时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 采集记录的月份
     */
    @TableField("CREATE_MONTH")
    private String createMonth; 
    
    /**
     * 能耗设备编号
     */
    @TableField(exist = false)
    private String code;
    
    /**
     * 能耗设备类型
     */
    @TableField(exist = false)
    private String type;
    /**
     * 所属工序
     */
    @TableField(exist = false)
    private String operationId;
    /**
     * 所属工序
     */
    @TableField(exist = false)
    private String operationName;
    
    /**
     * 所属车间
     */
    @TableField(exist = false)
    private String workshop;
    /**
     * 能耗名称
     */
    @TableField(exist = false)
    private String energyName;
    /**
     * 能耗单位
     */
    @TableField(exist = false)
    private String energyUnit;
    
    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getEnergyId() {
        return energyId;
    }



    public void setEnergyId(String energyId) {
        this.energyId = energyId;
    }



    public Double getValue() {
        return value;
    }



    public void setValue(Double value) {
        this.value = value;
    }



    public Date getCreateDate() {
        return createDate;
    }



    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getWorkshop() {
        return workshop;
    }

    public void setWorkshop(String workshop) {
        this.workshop = workshop;
    }

    public String getEnergyName() {
        return energyName;
    }

    public void setEnergyName(String energyName) {
        this.energyName = energyName;
    }

    public String getEnergyUnit() {
        return energyUnit;
    }

    public void setEnergyUnit(String energyUnit) {
        this.energyUnit = energyUnit;
    }
    

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName;
    }
    

    public String getCreateMonth() {
        return createMonth;
    }

    public void setCreateMonth(String createMonth) {
        this.createMonth = createMonth;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    } 
    
}
